<div class="course">
	<div class="title">我的课程列表</div>
	<div class="tool">
		<button event-click="{{'$Event.show_all_course'}}">添加新的课程</button>
	</div>
	<div class="list">
		{{#if $Cache_my_all_course_list.length}}
		{{#each $Cache_my_all_course_list}}
		<div class="item">
		<a class="icon-{{coursetype==1&&'jianpan'||'video'}}" event-click="{{'$Top.$Event.get_my_local_course_detail'}}">
			{{cname+" "+tname}}
		</a>
		<div event-click="{{'$Top.$Event.remove_course'}}" class="icon-delete2"></div>	
		</div>
		{{/each}}
		{{#else}}
		<h3>您还没有任何课程</h3>
		{{/if}}
	</div>
</div>

<div class="course_detail {{$Cache_show_my_local_course_detail&&'focus'}}">
	<div class="title icon-{{$Cache_my_local_course_type==1&&'jianpan'||'video'}}" >
		{{$Cache_my_local_course_name}}
	</div>
	<div event-click="{{'$Event.close_my_local_course_detail'}}" class="icon-jinru"></div>
	{{#if $Cache_show_all_course}}
	<div class="icon-add" event-click="{{'$Event.add_student_new_course'}}"></div>
	{{/if}}
	<div class="list">
	{{#if $Cache_my_local_course_type==1}}
	{{#each $Cache_my_local_course_detail}}
	<div class="item">
		{{($Index+1)+". "+start+" "+title}}
	</div>
	{{/each}}
	{{#else}}
	{{#each $Cache_my_local_course_detail}}
		<a class="item" target="_blank" href="m.course_video.html?vid={{id}}&cid={{cid}}">
			{{($Index+1)+". "+date+" "+name}}				
		</a>
	{{/each}}
	{{/if}}
	</div>
</div>

<div class="all_course {{$Cache_show_all_course&&'focus'}}">
	<div class="title">课程列表</div>
	<div event-click="{{'$Event.close_all_course'}}" class="icon-jinru"></div>
	<div class="list">
		{{#each $Cache_all_course_list}}
		<div class="item  icon-{{coursetype==1&&'jianpan'||'video'}}">
			<a event-click="{{'$Top.$Event.get_local_course_detail'}}">
				{{coursename+" "+tname}}
			</a>
		</div>
		{{/each}}
	</div>
</div>